Ext.define('CS.panel.HBox', {
	extend: 'Ext.panel.Panel',

	layout: 'hbox',

	constructor: function(config) {
		var me = this;

		config = CS.apply({}, config);

		Ext.each(config.items, function(item) {
			if (CS.isNotNull(item.colWidth)) {
				item.width = item.colWidth;
			} else {
				item.flex = 1;
				delete item.width;
			}
		});

		me.callParent([config]);
	}

});
